package com.itheima.String;

import java.util.Scanner;

public class Replace {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String s = sc.nextLine();
        String result = s.replace("TMD","***");
        //用之前的result来替换SB等.
        String result2 = result.replace("SB","???");
        System.out.println(result2);
    }
}
